import jsencrypt from '@/components/jsencrypt-Rsa/jsencrypt/jsencrypt.vue'
// import JSEncrypt from './jsencrypt.js';
 
// 加密公钥
let key = 'TmwVAb1S34wgIoKC'
// 加密
// 此加密公钥不能含有 '_' '-'字符串 参考：https://www.codenong.com/jsc71374f48fb3/
 
export function rsaEncrypt(msg) {
  var encryptMsg = jsencrypt.setEncrypt(key, msg)
  return encryptMsg
}
//超长字符加密 支持汉字加密
// var ArrayData=jsencrypt.setLongEncrypt(key,"超长字符加密支持汉字加密");